package com.mf.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDate;
import java.util.Date;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 任务
 * </p>
 *
 * @author mf
 * @since 2024-04-13
 */
@Getter
@Setter
@TableName("t_task")
public class Task {

/**
 * 任务名称
 */
@Schema(description = "任务名称")
@TableField(updateStrategy = FieldStrategy.NEVER)
@NotBlank
private String tName;

/**
 * 1:需要开始、结束;2:直接可以结束
 */
@Schema(description = "1:需要开始、结束;2:直接可以结束")
@NotBlank
private Integer type;

/**
 * 1:长期;2:范围
 */

@Schema(description = "1:长期;2:范围")
@NotBlank
private Integer cycleType;

/**
 * 0:正在执行任务;1:已完成任务
 */

@Schema(description = "0:正在执行任务;1:已完成任务")
private Integer status;

/**
 * 周期开始时间
 */
@Schema(description = "周期开始时间")
private LocalDate cycleStart;

/**
 * 周期结束时间
 */

@Schema(description = "周期结束时间")
private LocalDate cycleEnd;

/**
 * id
 */
@Schema(description = "id")
private Integer id;

/**
 * isDelete 0:使用;1:已删除
 */
@Schema(description = "isDelete")
@TableLogic
private Integer isDelete;

/**
 * 创建时间
 */
@Schema(description = "创建时间")
private Date createTime;

/**
 * 更新时间
 */
@Schema(description = "更新时间")
private Date  updateTime;
        }